import request from '@/api/config/request'

/**
 * @param {*} username 
 * @param {*} password 
 */
export function login(obj) {
  return request({
    url: '/api/auth/jwt/admin/token',
    method: 'post',
    params: obj
  })
}
/**
 * @param {*} token
 */
export function getAuth(obj) {
  return request({
    url: '/api/admin/user/info',
    method: 'get',
    params: obj
  })
}